<%@ page import="java.util.List" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %>
<%@ page import="com.timeDeal.bean.*" %><%--
  Created by IntelliJ IDEA.
  User: 妮子
  Date: 2016/9/12
  Time: 19:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../inc/shijianchushoutop.jsp"%>
<%
    PageList pagelist=(PageList) request.getAttribute("pagelist");
%>
<div class="row">
    <table class="table" colspan="10">
        <tr><h1>您的历史成果</h1></tr>
        <tr>
            <th>需求名称</th>
            <th>允许竞标</th>
            <th>操作</th>
        </tr>
        <%
            if(pagelist!=null){
                List<Object> list=pagelist.getList();
                for(int i=0;i<list.size();i++){
                    ShijianchushouBean shijianchushouBean=(ShijianchushouBean) list.get(i);
        %>
        <tr>
            <td><a href="<%=ctxpath%>/user/shijianchushou/shijiandetail?id=<%=shijianchushouBean.getShijianchushouid()%>"><%=shijianchushouBean.getShijianchushoumingcheng()%></a></td>
            <td> <%=shijianchushouBean.getYunxujingbiao()%></td>
            <td>
            <%if(StringUtils.equals(shijianchushouBean.getYunxujingbiao(),"是")){%>
               <button    value="<%=shijianchushouBean.getShijianchushouid()%>" id="sbsb" class="c22hexiaoyunxu btn"  >撤销</button>
            <%}else { %>
            <button    value="<%=shijianchushouBean.getShijianchushouid()%>" id="hehe" class="che222xiaobuyunxu btn"  >撤销</button>
            <%}%>
            </td>
        </tr>
        <%
                }}
            if(pagelist!=null){
        %>
        <tr>
            <td>
            <%
                for(int i=0;i<pagelist.getTotalpage();i++){
            %>
            <span><a href="/TimeDeal/user/wofabudegg.jsp?flag=1&currentpage=<%=i+1%>"><%=i+1%></a></span>
            <%}%>
            </td>
        </tr>
        <%}%>
    </table>
</div>
<%@include file="../../inc/bottom.jsp"%>
